﻿package mortal.game.view.forging.renderer
{
    import com.mui.controls.*;
    import mortal.common.global.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.util.*;
    import mortal.game.view.forging.data.*;

    public class ColorAdvanceAttrCellRenderer extends GCellRenderer
    {
        private var _attrName:GTextFiled;
        private var _attrValue:GTextFiled;

        public function ColorAdvanceAttrCellRenderer()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._attrName = UIFactory.gTextField("", 0, 0, 50, 20, this, GlobalStyle.textFormatHuang);
            this._attrValue = UIFactory.gTextField("", 48, 1, 40, 20, this, GlobalStyle.textFormatBai);
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            super._data = param1;
            var _loc_2:* = param1 as EquipColorAttrData;
            this._attrName.text = _loc_2.attrName;
            this._attrName.toolTipData = AttributeUtil.getTipsByAttrName(_loc_2.attrEgName);
            this._attrValue.text = _loc_2.attrValue + "";
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._attrName.dispose(param1);
            this._attrValue.dispose(param1);
            this._attrName = null;
            this._attrValue = null;
            return;
        }// end function

    }
}
